package com.x.mvp.utils;

/**
 * Created by Hwang on 2016/6/23.
 */
public class FloatUtil {
    public static float getFormatFloat(float num) {
        float roundNum = (float) (Math.round(num * 100)) / 100;
        return roundNum;
    }

    public static double getFormatDouble(double num) {
        double roundNum = (double) (Math.round(num * 100)) / 100;
        return roundNum;
    }
}
